<div id="main_header" class="ui-widget-header ui-corner-all">
    <h3>Registros del Formulario: "<?php echo $element->getTitle() ?>""</h3>
</div>
<div id="main_content" class="ui-widget ui-widget-content ui-corner-all">
    <table>
        <?php if(!$registers->count()): ?>
            <tr>
                <th>
                    <h3>No se han encontrado registros para este formulario.</h3>
                </th>
            </tr>
        <?php else: ?>
            <tr>
                <td>
                    <?php echo include_partial('registersList', array('registers' => $registers, 'fields' => $fields))?>
                </td>
            </tr>
            <tr>
                <td>
                    <a id="export_button" href="<?php echo url_for('element_export_form_registers', $element)?>" target="_blank"
                        class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary" title="Exportar a Excel">
                        <span class="ui-button-icon-primary ui-icon ui-icon-print"></span>
                        <span class="ui-button-text">Exportar</span>
                    </a>
                </td>
            </tr>
        <?php endif; ?>
    </table>
</div>